package de.tapps.brainstorming;

import android.app.Activity;
import android.content.SharedPreferences;

public class Storage {
	private MainActivity activity = new MainActivity();
	public Storage(MainActivity act){
		activity = act;
	}
	public void setLanguage(String value){
		SharedPreferences prefs = activity.getPreferences(activity.MODE_PRIVATE);
		SharedPreferences.Editor editor = prefs.edit();
		editor.putString("language", value);
		editor.commit();
	}

	public String getLanguage() {
		SharedPreferences prefs = activity.getPreferences(activity.MODE_PRIVATE);
		String language = prefs.getString("language", "");
		return language;
	}
}
	

